package c.h.a.f0;

import android.text.TextUtils;
import android.widget.Toast;
import c.h.b.d.a.d;
import c.h.b.d.a.g;
import com.liuzh.deviceinfo.pro.ProActivity;
import java.util.Collections;
import java.util.List;
import java.util.Objects;

/* compiled from: ProActivity */
public class h implements g {
    public final /* synthetic */ String a;
    public final /* synthetic */ boolean b;
    public final /* synthetic */ boolean c;
    public final /* synthetic */ ProActivity d;

    public h(ProActivity proActivity, String str, boolean z, boolean z2) {
        this.d = proActivity;
        this.a = str;
        this.b = z;
        this.c = z2;
    }

    public void a() {
        b(Collections.emptyList());
    }

    public void b(List<d> list) {
        for (d dVar : list) {
            if (TextUtils.equals(this.a, dVar.a)) {
                j.d.g();
                return;
            }
        }
        if (this.b) {
            ProActivity proActivity = this.d;
            String str = this.a;
            int i = ProActivity.z;
            Objects.requireNonNull(proActivity);
            j jVar = j.d;
            jVar.a.e(proActivity, str, 1, new i(proActivity));
        } else if (this.c) {
            Toast.makeText(this.d, 2131690132, 0).show();
        }
    }
}
